@echo off
REM Make wrapper script for VS Code Makefile Tools
REM This script handles the dry-run and other parameters that VS Code Makefile Tools expects

if "%1"=="--dry-run" (
    REM For dry-run, just show what would be executed
    echo Would execute: mingw32-make %*
    exit /b 0
)

if "%1"=="--keep-going" (
    REM For keep-going, use mingw32-make with -k flag
    shift
    mingw32-make -k %*
    exit /b %ERRORLEVEL%
)

if "%1"=="--print-directory" (
    REM For print-directory, use mingw32-make with -w flag
    shift
    mingw32-make -w %*
    exit /b %ERRORLEVEL%
)

REM Default case: just run mingw32-make with all arguments
mingw32-make %*
exit /b %ERRORLEVEL%
